package org.dromara.app.domain.bo;

import org.dromara.app.domain.SkYueJuDemo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 约局模版业务对象 sk_yue_ju_demo
 *
 * @author Evacuation
 * @date 2024-07-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SkYueJuDemo.class, reverseConvertGenerate = false)
public class SkYueJuDemoBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 一级类型
     */
    private String type;

    /**
     * 二级类型
     */
    private String twoType;


}
